package com.common.code.entity;
/**
 * 参考文档: https://www.jianshu.com/p/2706f2ea8523
 * @ApiModel 有descrption等配置
 * 配置模型注释，一个模型就相当于一个表
 * @ApiModelProperty("id") 有value(简短描述)等配置
 * 配置模型的属性注释
 */

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "用户表")
public class User {
    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("username")
    private String username;

    @ApiModelProperty("password")
    private String password;

    @ApiModelProperty("enable")
    private Integer enable;

    public Integer getId() {
        return id;
    }
}